﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;

namespace HZYProject.Domain
{
    public class User
    {
        public Guid UserId { get; set; }
        [StringLength(50)]
        public string UserName { get; set; }
        [StringLength(50)]
        public string PassWord { get; set; }
        public int Status { get; set; }
        [DataType(DataType.DateTime)]
        public DateTime CreateTime { get; set; }

        [StringLength(50)]
        public string RealName { get; set; }

        [StringLength(50)]
        public string Sex { get; set; }
        public Guid CollegesID { get; set; }


        /// <summary>
        /// 导航属性-所属院校
        /// </summary>
        public virtual Colleges Colleges { get; set; }

        public virtual ICollection<Role> Roles { get; set; }
    }
}
